package com.xiaolun.factory.abstract1;

/**
 * @Author 硕鼠
 * @Date 2020/5/21 22:58
 * @Version 1.0
 * @Description 文件说明
 */
//小米手机和路由器由小米工厂生产
public class XiaomiFactory implements IProductFactory {
    @Override
    public IphoneProduct iphoneProduct() {
        return new XiaomiPhone();
    }

    @Override
    public IRouterProduct iRouterProduct() {
        return new XiaomiRouter();
    }
}
